import { get, post } from "./http.js"
//.................
//菜单添加
export const menuAdd = (params) => post("/api/menuadd", params)
//菜单列表
export const menuList = (params) => get("/api/menulist", params)
//菜单删除
export const menudelete = (params) => post("/api/menudelete", params)
//获取一条信息
export const menuinfo = (params) => get("/api/menuinfo", params)
//编辑
export const menuedit = (params) => post("/api/menuedit", params)
//......................
//角色添加
export const roleadd = (params) => post("/api/roleadd", params)
//角色列表
export const roleList = (params) => get("/api/rolelist", params)
//角色删除
export const roledeLete = (params) => post("/api/roledelete", params)
//角色获取一条信息
export const roleInfo = (params) => get("/api/roleinfo", params)
//角色修改/
export const roleEdit = (params) => post("/api/roleedit", params)
//.........................
//管理员添加
export const useradd = (params) => post("/api/useradd", params)
//管理员列表
export const userlist = (params) => get("/api/userlist", params)
//管理员删除
export const userdelete = (params) => post("/api/userdelete", params)
//管理员获取一条信息
export const userinfo = (params) => get("/api/userinfo", params)
//管理人员编辑
export const useredit = (params) => post("/api/useredit", params)
//管理员总数，计算分页
export const usercount = () => get("/api/usercount")
//-------------------------------------------
//商品分类添加 
export const cateadd = (params) => post("/api/cateadd", params, true)
//列表
export const catelist = (params) => get("/api/catelist", params)
//删除
export const catedelete = (params) => post("/api/catedelete", params)
//获取一条信息
export const cateinfo = (params) => get("/api/cateinfo", params)
//编辑修改
export const cateedit = (params) => post("/api/cateedit", params, true)
//......................
//商品规格添加
export const specsadd = (params) => post("/api/specsadd", params)
//列表
export const specslist = (params) => get("/api/specslist", params)
//删除
export const specsdelete = (params) => post("/api/specsdelete", params)
//获取一条信息
export const specsinfo = (params) => get("/api/specsinfo", params)
//编辑
export const specsedit = (params) => post("/api/specsedit", params)
//计算总页数
export const specscount = (params) => get("/api/specscount", params)
//..........................
//商品添加
export const goodsadd = (params) => post("/api/goodsadd", params, true)
//列表
export const goodslist = (params) => get("/api/goodslist", params)
//删除
export const goodsdelete = (params) => post("/api/goodsdelete", params)
//获取一条信息
export const goodsinfo = (params) => get("/api/goodsinfo", params)
//编辑/
export const goodsedit = (params) => post("/api/goodsedit", params, true)
//计算分页
export const goodscount = (params) => get("/api/goodscount", params, true)
//登录
export const userlogin = (params) => post("/api/userlogin", params)
////////////////
//会员列表
export const memberlist = () => get("api/memberlist")
//会员获取
export const memberinfo = (params) => get("/api/memberinfo", params)
//会员编辑/api/memberedit
export const memberedit = (params) => post("/api/memberedit", params)
//..................
//轮播图添加
export const banneradd = (params) => post("/api/banneradd", params, true)
//轮播图列表
export const bannerlist = () => get("/api/bannerlist")
//轮播图获取一条信息
export const bannerinfo = (params) => get("/api/bannerinfo", params)
////轮播图编辑
export const banneredit = (params) => post("/api/banneredit", params, true)
//轮播图删除
export const bannerdelete = (params) => post("/api/bannerdelete", params)
//.........
//限时秒杀添加
export const seckadd = (params) => post("/api/seckadd", params)
